﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="OrderInfos.aspx.cs" Inherits="TimKen.Web.order.OrderInfos" %>
<%@ Register src="../UserControls/UserCenter.ascx" tagname="UserCenter" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:UserCenter ID="UserCenter1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form runat="server">
 <div class="rtitle">
        <%=GetLangString("OrderInfo")%>
    </div>
    <div class="msglist txtright">
        <%=GetLangString("OrderStep_SearchProducts")%>->
        <%=GetLangString("ShoppingCart")%>->
        <%=GetLangString("SubmitOrder")%>-> <b>
            <%=GetLangString("OrderStep_OrderComplete")%></b></div>
    <div class="orderinfo">
        <ul>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("OrderNo")%>：
                </div>
                <asp:Label ID="labOrderNo" runat="server" Text=""></asp:Label>&nbsp;
                <asp:HiddenField ID="labOrderID" runat="server" />
            </li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("OrderDate")%>：</div>
                    <asp:Label ID="labCreateDate" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("CustomerName")%>：</div>
                <asp:Label ID="labCardCode" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("LinkManID")%>：</div>
                    <asp:Label ID="labContactPerson" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("LMName")%>：</div>
                <asp:Label ID="labLMName" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("Telephone")%>：</div>
                    <asp:Label ID="labTelephone" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("Mobile")%>：</div>
                <asp:Label ID="labMobile" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("Email")%>：
                </div>
                <asp:Label ID="labEmail" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("Address")%>：
                </div>
                <asp:Label ID="labAddress" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("Remark")%>：
                </div>
                <asp:Label ID="labRemark" runat="server"></asp:Label>
            </li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("Currency")%>：</div>
                    <asp:Label ID="labCurrency" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("SalesPersonCode")%>：</div>
                <asp:Label ID="labSalesPersonCode" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("BillAddress")%>：
                </div>
                <asp:Label ID="labBillAddress" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("ShipArea")%>：
                </div>
                <asp:Label ID="labShipTo" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("ExpectDate")%>：
                </div>
                <asp:Label ID="labExpectDate" runat="server" Text=""></asp:Label>
                <br />
                <font color="Silver" style=" padding-left:129px;">
                    <%=GetLangString("ExpectDateInfo")%></font> </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("PlanDeliveryDate")%>：
                </div>
                <asp:Label ID="lblPlanDate" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <div class="orderinfotitle">
                    <%=GetLangString("ShipAddress")%>：
                </div>
                <asp:Label ID="labShipAddress" runat="server"></asp:Label>
            </li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("BaseAmount")%>：</div>
                    <asp:Label ID="labBaseAmount" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("TotalAmount")%>：</div>
                <asp:Label ID="labTotalAmount" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("TaxAmount")%>：</div>
                    <asp:Label ID="labTaxAmount" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("TaxClassName")%>：</div>
                <asp:Label ID="labTaxClass" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("ShippingType")%>：</div>
                    <asp:Label ID="labTransType" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("Freight")%>：</div>
                <asp:Label ID="labFreight" runat="server" Text=""></asp:Label></li>
            <li>
                <div class="right orderinforight">
                    <div class="orderinfotitle">
                        <%=GetLangString("OrderStatus")%>：</div>
                    <asp:Label ID="labOrderStatus" runat="server" Text=""></asp:Label>
                </div>
                <div class="orderinfotitle">
                    <%=GetLangString("ContractStatus")%>：</div>
                <asp:Label ID="labContractStatus" runat="server" Text=""></asp:Label>
            </li>
        </ul>
    </div>
    <div class="msglist">
        <%=GetLangString("OrderItems")%></div>
    <asp:Repeater ID="repOrderItems" runat="server">
        <HeaderTemplate>
            <table class="rtable" cellspacing="0">
                <tr>
                    <th width="120px" class="topleft">
                        <%#GetLangString("ItemCode")%>
                    </th>
                    <th width="120px">
                        <%#GetLangString("ProductName")%>
                    </th>
                    <th width="70px">
                        <%#GetLangString("ShopNumber")%>
                    </th>
                    <th width="80px">
                        <%#GetLangString("SalesUnit")%>
                    </th>
                    <th width="80px">
                        <%#GetLangString("Weight")%> 
                    </th>
                    <th width="100px">
                        <%#GetLangString("UnitPrice")%>(<%=GetLangString("NoTax") %>)
                    </th>
                    <th width="100px">
                        <%#GetLangString("Amount")%>(<%=GetLangString("NoTax") %>)
                    </th>
                  
                   
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="first">
                    <a href="../Product/ProductInfo.aspx?ProductID=<%#Eval("ProductID") %>">
                        <%#Eval("ItemCode") %></a>
                </td>
                <td>
                    <%#pdm.GetModel(int.Parse(Eval("ProductID").ToString()),LanguageID).Name %>
                </td>
                <td>
                    <%#Eval("Quantity") %>
                </td>
                <td>
                    <%#Eval("Unit") %> 
                </td>
                <td>
                    <%#Eval("Weight") %><%#Eval("WeightUnit").ToString().ToUpper()%>
                </td>
                <td>
                    <%#decimal.Round(decimal.Parse(Eval("FinalPrice").ToString()), 2).ToString()%> RMB
                </td>
                <td>
                    <%#decimal.Round(decimal.Parse(Eval("BaseAmount").ToString()), 2).ToString()%> RMB
                </td>
     
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    
    <div class="orderinfo">
        <ul>
            <li>
                <%=GetLangString("BaseAmount")%>：  <asp:Label ID="lblBaselAmount2" runat="server" Text=""></asp:Label>
            </li>
            <li>
                <%=GetLangString("TotalAmount")%>：  <asp:Label ID="lblTotalAmount2" runat="server" Text=""></asp:Label>
            </li>
            </ul>
            </div>
    <div class="rightbt" align="center">
    
    
          

       <asp:Button id="btnConfirm"  runat="server"   class="submitlink"  Text="确认订单" 
            onclick="btnConfirm_Click"/>
    
        <a href="../Shop/OrderHistory.aspx" class="submitlink">
            <%=GetLangString("BackToHistoryOrder")%></a>
    </div>
    </form>
</asp:Content>
